package com.baomidou.springwind.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.springwind.entity.Attendance;
import com.baomidou.springwind.mapper.AttendanceMapper;
import com.baomidou.springwind.service.IAttendanceService;
import com.baomidou.springwind.service.support.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/4/14.
 */
@Service
public class AttendanceServiceImpl extends BaseServiceImpl<AttendanceMapper, Attendance> implements IAttendanceService {

    @Override
    public List<Attendance> selectAttendanceById(String id) {
        return null;
    }

    @Override
    public List<Attendance> selectAllAttendance(Page<Attendance> page) {
        return baseMapper.selectAllAttendance(page.getOffset(),page.getLimit());
    }

    @Override
    public List<Attendance> selectByEmployeeName(int offset, int size, String keyword) {
        return baseMapper.selectByEmployeeName(offset,size,keyword);
    }

    @Override
    public List<Attendance> selectByEmployeeNum(int offset, int size, String keyword) {
        return baseMapper.selectByEmployeeNum(offset,size,keyword);
    }

    @Override
    public List<Attendance> selectByEmployeeId(int offset, int size, String keyword) {
        return baseMapper.selectByEmployeeId(offset,size,keyword);
    }

    @Override
    public List<Attendance> selectByDepartmentName(int offset, int size, String keyword) {
        return baseMapper.selectByDepartmentName(offset,size,keyword);
    }

}
